#include <iostream>
#include <string>
#include <cstring>
using namespace std;
struct Teacher
{
    string name;
    char gender;
    int age;
    void initTeacher(string name, char gender , int age);
    void show(){
        cout << "姓名:" << name << ",性别" << gender << ",年龄"<< age << endl;
    }
};

void Teacher::initTeacher(string name, char gender , int age)
{
    this->name = name;
    this->gender = gender;
    this->age = age;
}

int main(){
    Teacher t,t1;
    t.initTeacher("大坝",'w',12);
    t.show();

    t1.initTeacher("机密",'m',13);
    t1.show();

    t1 = t;
    t1.show();
    while (1)
    {
        
    }
    return 0;
}


